src: change v8:ConstructorBehavior in stream_base-inl.h#23453
src: change v8:ConstructorBehavior in stream_base-inl.h#23453bmacnaughton wants to merge 4 commits intonodejs:masterfrom
Conversation
Throw if addMethod functions used as constructors.
|
@bmacnaughton This PR is very similar to #23447 – that’s my fault. One of the tasks we handed out had text pointing to the same file, even though the heading pointed to another file ( I’ll try to land both of these PRs together so you both get full credit, but just a heads up, if you have the test with the heading mentioning |
Throw an error if verify_error_getter_templ or verify_error_getter_templ2 are used as constructors.
This reverts commit f8087e6.
|
I made the changes to node_crypto.cc as you noticed but didn't really think they belonged in the same branch because the message was wrong. So I reverted them, created a new branch, then resubmitted them. I'm sorry for the extra things to look at. I appreciate you taking a quick look on this. |
|
@bmacnaughton Don’t worry, we can make any of this work the way you want to. :) I’ll just assign these PRs to myself so nothing goes wrong while landing them :) |
Change ConstructorBehavior from kAllow to kThrow. Co-authored-by: Bruce A. MacNaughton <bmacnaughton@gmail.com> Refs: #23453 PR-URL: #23447 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Change ConstructorBehavior from kAllow to kThrow. Co-authored-by: Bruce A. MacNaughton <bmacnaughton@gmail.com> Refs: #23453 PR-URL: #23447 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Throw if addMethod functions used as constructors.
Implemented TimothyGu) TODO: None of these should
have ConstructorBehavior::kAllow
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes